﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace JmShared
{
    /// <summary>
    /// Holds user settings specific to a windows phone 8 client.
    /// </summary>
    
    public class WpUserSettings : UserSettings
    {
        [UserSettingsType(UserSettingsType.WpSettings)]
        public bool? SendPmPushWhileOffline { get; set; }

        [UserSettingsType(UserSettingsType.WpSettings)]
        public bool? IsTileEnabled { get; set; }

        [UserSettingsType(UserSettingsType.WpSettings)]
        public bool? IsToastEnabled { get; set; }

        public WpUserSettings(bool setDefaults = false)
        {
            if (setDefaults)
            {
                this.SendPmPushWhileOffline = true;
                this.IsTileEnabled = true;
                this.IsToastEnabled = true;
                this.EnableNudge = false;
                this.ShowTimestamp = true;
                this.StoreMessagesWhileOffline = true;
                this.OfflineMessagesCountLimit = 150;
                this.OfflineMessagesAgeLimit = 12;
                this.ReceiveAnsweredMessagesWhileOffline = true;
                this.FontFamily = "Microsoft Sans Serif";//fontConverter.ConvertToInvariantString(System.Drawing.SystemFonts.DefaultFont);
                this.FontStyle = "Normal";
                this.FontWeight = "Normal";
                this.FontSize = 12;
                this.FontHexColor = "#000000";
            }
        }
        public WpUserSettings() { }
    }
}
